/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frstat_server.h                                    */
/*  NOTE      =                                                    */
/*  DATE      = 2015/01/26 by guojq                                */
/*******************************************************************/
#ifndef __FRSTAT_SERVER_H_
#define __FRSTAT_SERVER_H_

int frstat_server_add(u_int ui_ip, u_short us_port, int i_l7_proto, int i_connections, int i_requests, int i_responses);
int frstat_server_del(u_int ui_ip, u_short us_port, int i_l7_proto);
void frstat_server_count(void);
void frstat_server_output(char **pp_result);
void frstat_server_check_timeouts(int i_time);

int frstat_server_related_add(u_int ui_ip, u_short us_port
                            , u_int ui_ip_related, u_short us_port_related);
int frstat_server_related_del(u_int ui_ip, u_short us_port);
void frstat_related_check_timeouts(int i_time);

int frstat_server_init(int i_timeout);
void frstat_server_destory(void);

#endif
